package com.xs.api;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import com.xs.entity.Order;

//@FeignClient(name = "USER-API", fallback = UserServiceApiFallback.class)
public interface OrderServiceApi {

	@PostMapping("/orderApi/getOrders")
	public String getOrders();

	@PostMapping("/orderApi/getOrderById")
	public Order getOrderById(@RequestParam("userId") int orderId);

	@PostMapping("/orderApi/getOrderInfo")
	public Order getOrderInfo(@RequestBody Order order);

}
